package com.raycloud.erp.omll.provider.utils;

import com.omall.open.sdk.response.AuthResponse;

import java.util.HashMap;

/**
 * @author 枫伦
 * @DESCRIPTION
 * @create 2021/5/7 2:40 下午
 */
public class HttpUtilsTest {
    public static void main(String[] args) {
        OmallHttpUtils omallHttpUtils = new OmallHttpUtils();
        HashMap<String, String> authMap = new HashMap<>();
        authMap.put("app-key", "e7a2e2d3a3");
        authMap.put("sign", "4678b733e21c4ec9c4ee1f53cdc805fa");
        authMap.put("timestamp", "1620369200940");
        AuthResponse omallResponse = (AuthResponse) omallHttpUtils.getWithParams("https://ark.xiaohongshu.com/ark/open_api/v0/packages/62022465100394973", authMap, AuthResponse.class, null);
    }
}
